package com.zjff.myshop.front.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 用户登录 By 手机号 + 验证码
 */
@Data
public class LoginByPhoneForm implements Serializable {

    @ApiModelProperty(value = "手机号", position = 1, required = true)
    @NotEmpty(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "验证码", position = 2, required = true)
    @NotEmpty(message = "验证码不能为空")
    private String code;
}
